/*
    Jueyin.h - Library for JueYing intelligent vehicle code.
    Created by PINPINWA. 2024.01.05
    Released into pubilic domain
*/

# ifndef Jueying_h
# define Jueying_h

# include "Arduino.h"

class Jueying {
    private:
        /* data */
    public:
        void initialPin();
        void setRightMotor(int dir, int speed);
        void setLeftMotor(int dir, int speed);
        void motorRun(int index, int dir, int speed);
        void jueyingRun(int index, int speed);
        void motorStop(int index);
        float e9t8UltraDis();

        int getIrStatus_vLite(int thValue);
        boolean isIrStatus_vLite(int status, int thValue);
        
        int getJoystickData();
        boolean isJsBtnPressed(int jsbtn);
        
};

#endif